package edu.hit.stu.util.jwt;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@ConfigurationProperties(prefix = "custorm.jwt")
public class JwtProperties {

    /**
     * JWT 所在 http 请求头
     */
    private String header = "X-Authorization";

    /**
     * JWT 令牌前缀
     */
    private String prefix = "Bearer ";

    /**
     * 默认加密盐值
     */
    private String jwtKey = "$2a$5rd.seFaUumrC!H";

    /**
     * 令牌过期时间 (mins)
     */
    private int mins = 30;

}
